package ywpt.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import ywpt.components.acegi.domain.User;

public class RepairInfo implements java.io.Serializable{

	/**
	 * 维修信息
	 */
	private static final long serialVersionUID = 8766849651969996937L;
	private Long 	id;//
	private String code;
	private JobInfo job;//服务单
	private ClientInfo	client;//所属客户
	private String	linkUser;//  客户联系人
	private ClientDevice device;//客户设备
	private Date registerDate;// 登记日期
	private String  faultDesc ;//故障描述
	private PeopleInfo  getUser ;//取回人
	private PeopleInfo  sendUser ;//送回人
	private PeopleInfo  responseUser ;//维修责任人
	private String responseName;//
	private Date  returnDate;//外修送返日期
	private CommonTable  repareType;//维修类型
	private CommonTable  repareResult;//维修结果
	private int  version;//版本号
	private Boolean  submitFlag;//审核
	private Boolean  checkFlag;//审核
	private User  checker;//审核人
	private Boolean  deleteFlag;//是否删除
	private Date  createDate;//建立时间
	private PeopleInfo  creater;//建立人
	private Date  modifyDate;//最后修改时间
	private User  modifyer;//最后修改人
	private String remark;
	private String remark1;
	private String remark2;

	private String str;
	
	private Set<SmallAmount> smallAmountSet = new HashSet<SmallAmount>();
	
	public Set<SmallAmount> getSmallAmountSet() {
		return smallAmountSet;
	}

	public void setSmallAmountSet(Set<SmallAmount> smallAmountSet) {
		this.smallAmountSet = smallAmountSet;
	}

	public RepairInfo () {
		this.checkFlag = false;
		this.deleteFlag = false;
		this.submitFlag = false;
		
	}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public JobInfo getJob() {
		return job;
	}
	public void setJob(JobInfo job) {
		this.job = job;
	}
	public ClientInfo getClient() {
		return client;
	}
	public void setClient(ClientInfo client) {
		this.client = client;
	}
 
	public String getLinkUser() {
		return linkUser;
	}

	public void setLinkUser(String linkUser) {
		this.linkUser = linkUser;
	}

	
	public ClientDevice getDevice() {
		return device;
	}

	public void setDevice(ClientDevice device) {
		this.device = device;
	}

	public Date getRegisterDate() {
		return registerDate;
	}
	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}
	public String getFaultDesc() {
		return faultDesc;
	}
	public void setFaultDesc(String faultDesc) {
		this.faultDesc = faultDesc;
	}
 
	public PeopleInfo getSendUser() {
		return sendUser;
	}
	public void setSendUser(PeopleInfo sendUser) {
		this.sendUser = sendUser;
	}
	public Date getReturnDate() {
		return returnDate;
	}
	public void setReturnDate(Date returnDate) {
		this.returnDate = returnDate;
	}
	public CommonTable getRepareType() {
		return repareType;
	}
	public void setRepareType(CommonTable repareType) {
		this.repareType = repareType;
	}
	public CommonTable getRepareResult() {
		return repareResult;
	}
	public void setRepareResult(CommonTable repareResult) {
		this.repareResult = repareResult;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public Boolean getCheckFlag() {
		return checkFlag;
	}
	public void setCheckFlag(Boolean checkFlag) {
		this.checkFlag = checkFlag;
	}
	public User getChecker() {
		return checker;
	}
	public void setChecker(User checker) {
		this.checker = checker;
	}
	public Boolean getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
 
	public PeopleInfo getResponseUser() {
		return responseUser;
	}
	public void setResponseUser(PeopleInfo responseUser) {
		this.responseUser = responseUser;
	}
	public PeopleInfo getCreater() {
		return creater;
	}
	public void setCreater(PeopleInfo creater) {
		this.creater = creater;
	}
	public Date getModifyDate() {
		return modifyDate;
	}
	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}
	public User getModifyer() {
		return modifyer;
	}

	public void setModifyer(User modifyer) {
		this.modifyer = modifyer;
	}

	public Boolean getSubmitFlag() {
		return submitFlag;
	}

	public void setSubmitFlag(Boolean submitFlag) {
		this.submitFlag = submitFlag;
	}

	public PeopleInfo getGetUser() {
		return getUser;
	}

	public void setGetUser(PeopleInfo getUser) {
		this.getUser = getUser;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getStr() {
		String result = "";
		if (client!=null) {
			result = result+client.getClientName();
		}
		if (device!=null) {
			result = result+"-"+device.getName();
		}
		return result;
	}

	public String getRemark1() {
		return remark1;
	}

	public void setRemark1(String remark1) {
		this.remark1 = remark1;
	}

	public String getRemark2() {
		return remark2;
	}

	public void setRemark2(String remark2) {
		this.remark2 = remark2;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getResponseName() {
		return responseName;
	}

	public void setResponseName(String responseName) {
		this.responseName = responseName;
	}
 
}
